package com.azure.mapper.report;

import com.azure.entity.AAdmin;
import com.azure.entity.AAdminExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AAdminMapper {
    int countByExample(AAdminExample example);

    int deleteByExample(AAdminExample example);

    int deleteByPrimaryKey(String username);

    int insert(AAdmin record);

    int insertSelective(AAdmin record);

    List<AAdmin> selectByExample(AAdminExample example);

    AAdmin selectByPrimaryKey(String username);

    int updateByExampleSelective(@Param("record") AAdmin record, @Param("example") AAdminExample example);

    int updateByExample(@Param("record") AAdmin record, @Param("example") AAdminExample example);

    int updateByPrimaryKeySelective(AAdmin record);

    int updateByPrimaryKey(AAdmin record);

    @Select("select * from a_admin where username = #{username} and password = #{password} ")
    List<AAdmin> selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    @Select("select * from a_admin where username = #{username}")
    List<AAdmin> selectByUsername(@Param("username") String username);
}